package com.hualan.service.impl;

import com.hualan.domain.Consultreply;
import com.hualan.domain.User;
import com.hualan.mapper.ConsultreplyMapper;
import com.hualan.service.ConsultReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConsultReplyImpl implements ConsultReplyService {
    @Autowired
    public ConsultreplyMapper consultreplyMapper;
    @Override
    public List<Consultreply> selectAllreply() {
        return consultreplyMapper.selectAllreply();
    }

    @Override
    public List<Consultreply> selectAlllike(String replytext) {
        return consultreplyMapper.selectAlllike(replytext);
    }

    @Override
    public int insertSelective(Consultreply record) {
        return consultreplyMapper.insertSelective(record);
    }

    @Override
    public int updateReply(Consultreply consultreply) {
        return consultreplyMapper.updateReply(consultreply);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return consultreplyMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<User> selectAllUserIdUserName() {
        return consultreplyMapper.selectAllUserIdUserName();
    }

}
